package cn.cvs.dao;

import cn.cvs.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    int add(SysRole sysRole);
    int modify(@Param("roleName")String roleName,@Param("id")Integer id);

    List<SysRole> Show(@Param("roleName")String roleName);

    /**
     * 3-简答-使用if-set 修改信息
     * @param roleName
     * @param id
     * @return
     */
    int update(@Param("roleName")String roleName,@Param("id")Integer id);

    /**
     * 3-简答-分页查询
     * @param pageBegin
     * @param pageSize
     * @param roleName
     * @return
     */
    List<SysRole>getSysRoleLimit(@Param("pageBegin")Integer pageBegin,@Param("pageSize")Integer pageSize,@Param("roleName")String roleName);
}
